import { INIT_DATA} from "./mutations-types"
export default {
    state: {
        list:[]
    },
    getters: {
        defaultAddress(state) {
            return state.list.filter(v => {
                return v.isDefault == 1;
            })
      }  
    },
    mutations: {
        [INIT_DATA](state,addressArr) {
            state.list = addressArr;
        }
    }
}